using System;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using System.Text;
using System.Web;

namespace Adge.Common
{
    public class CacheFactory
    {
        //public static string[,] GetBanWordList()
        //{
        //    CSCache cache1 = CSCache.GetCacheService();
        //    string[,] textArray1 = cache1.RetrieveObject("/Forum/BanWordList") as string[,];
        //    if (textArray1 == null && ConnectionManager.IsOnline)
        //    {
        //        DataTable table1 = SqlHelper.ExecuteDataset(AdgeConfig.ConnectString, CommandType.Text, "SELECT [find], [replacement] FROM [words]").Tables[0];
        //        textArray1 = new string[table1.Rows.Count, 2];
        //        for (int num1 = 0; num1 < table1.Rows.Count; num1++)
        //        {
        //            textArray1[num1, 0] = table1.Rows[num1]["find"].ToString();
        //            textArray1[num1, 1] = table1.Rows[num1]["replacement"].ToString();
        //        }
        //        cache1.AddObject("/Forum/BanWordList", textArray1);
        //        table1.Dispose();
        //    }
        //    return textArray1;
        //}

    }
}

